import request from '@/utils/request'

// 查询积分赛季列表
export function listSeason(query) {
  return request({
    url: '/bole/season/list',
    method: 'get',
    params: query
  })
}

// 查询积分赛季详细
export function getSeason(seasonId) {
  return request({
    url: '/bole/season/' + seasonId,
    method: 'get'
  })
}

// 新增积分赛季
export function addSeason(data) {
  return request({
    url: '/bole/season',
    method: 'post',
    data: data
  })
}

// 修改积分赛季
export function updateSeason(data) {
  return request({
    url: '/bole/season',
    method: 'put',
    data: data
  })
}

// 删除积分赛季
export function delSeason(seasonId) {
  return request({
    url: '/bole/season/' + seasonId,
    method: 'delete'
  })
}
